import Taro, { Component, Config } from "@tarojs/taro";
import {View, ScrollView, Image, Text} from "@tarojs/components";

import './index.less'
import bg_09 from '../../assets/img/bg_09.png'
import bg_10 from '../../assets/img/bg_10.png'
import logo_01 from '../../assets/img/logo_01.png'
import logo_02 from '../../assets/img/logo_02.png'
import {getRuntime, servicePhoneNumber} from "../../utils/common";

// 建务库中心
class Library extends Component {
  constructor() {
    super()
  }

  componentWillMount(): void {
    Taro.setNavigationBarTitle({ title:'建务库中心' })
  }

  handelRouter(url: string = '/pages/index/index'): void {
    window.location.href = url
  }

  makePhone() {
    getRuntime().makePhoneCall(servicePhoneNumber)
  }

  render() {
    return (
      <View className='library-index'>
        <View className='library-item'>
          <Image src={bg_09} className='library-bg'/>
          <View className='library-content'>
            <Image src={logo_02} className='library-logo'/>
            <View className='library-desc'>
              鲁班建业通：信用奖惩、业绩真假 、项目经理在建、人员注册情况、招标文件符合的公司、同时具备多个业绩的公司、项目经理带类似业绩的公司等。
            </View>
            <View className='btn-in' onClick={this.handelRouter.bind(this,'https://m.lubanjianye.com/')}>立即进入</View>
          </View>
        </View>

        <View className='library-info'>
         {/* <View>公司名称：成都鲁班建业科技股份有限公司</View>
          <View>四川公司地址：新希望国际B座807、808号</View>
          <View>云南公司地址：五华区鼎易天成5栋3006号</View>*/}
          <View onClick={this.makePhone.bind(this)}> VIP客服电话：{ servicePhoneNumber }
          </View>
        </View>

        <View className='library-item'>
          <Image src={bg_10} className='library-bg'/>
          <View className='library-content'>
            <Image src={logo_01} className='library-logo'/>
            <View className='library-desc'>
              建设库：建筑行业招投标大数据，综合服务提供商。
            </View>
            <View className='btn-in' onClick={this.handelRouter.bind(this,'https://m.jiansheku.com/')}>立即进入</View>
          </View>
        </View>
        <View className='library-info'>
          {/*<View>公司名称：杭州筑龙信息技术股份有限公司</View>
          <View>公司地址：杭州市滨江区六和路309号中控科技园E幢8层/10层</View>
          <View> VIP客服电话：400-600-3067</View>*/}
          <View onClick={this.makePhone.bind(this)}> VIP客服电话：{ servicePhoneNumber }
          </View>
        </View>
      </View>
    )
  }
}

export default Library
